<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>


<?php if($type == 'logout') : ?>

<?php if ($params->get('greeting')) : ?>
	<div class = "greeting">
	<?php if ($params->get('name')) : {
		echo JText::sprintf( 'HINAME', $user->get('name') );
		?>
			<a href="index.php?option=com_user&view=login" class="log_out_text" /><?php echo JText::_( 'BUTTON_LOGOUT'); ?><a/>
		<?php 
	} else : {
		echo JText::sprintf( 'HINAME', $user->get('username') );
	} endif; ?>
	</div>
<?php endif; ?>

	<div class = "logout_link">
		<a href="index.php?option=com_user&view=login" class="log_out_text" /><?php echo JText::_( 'BUTTON_LOGOUT'); ?><a/>
	</div>

<?php else : ?>


<?php echo $params->get('pretext'); ?>


	<div align="center" class = "login_link">
		<a href="index.php?option=com_user&view=login" class="log_in_text" /><?php echo JText::_('LOGIN') ?><a/>
	</div>


<?php endif; // if($type == 'logout')?>


<?php echo $params->get('posttext'); ?>